package com.fdb.efp.nls.service.dao;

import com.fdb.efp.nls.service.domain.CertUploadRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CertUploadRecordDAO {

    int deleteByPrimaryKey(String id);

    int insert(CertUploadRecord record);

    int insertSelective(CertUploadRecord record);

    CertUploadRecord selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(CertUploadRecord record);

    int updateByPrimaryKey(CertUploadRecord record);

    /**
     * 获取需要上传的记录
     * @param maxNum 处理记录数
     * @param retryNum 重试次数
     * @param prdId 产品id
     * @return
     */
    List<CertUploadRecord> selectNeedUploadList(@Param("maxNum") int maxNum, @Param("retryNum") int retryNum, @Param("prdId") String prdId);

    int countByFileUrl(@Param("fileUrl") String fileUrl);

}